package com.zz.chenko.sys.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Zhong
 * @since 2017-05-16
 */
@TableName("sys_menu")
public class Menu extends Model<Menu> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="ID", type= IdType.AUTO)
	private Long id;
    /**
     * 上级id
     */
	@TableField("PARENT_ID")
	private Long parentId;
    /**
     * 菜单名称
     */
	@TableField("MENU_NAME")
	private String menuName;
    /**
     * 跳转地址
     */
	@TableField("MENU_URL")
	private String menuUrl;
    /**
     * 菜单图标
     */
	@TableField("MENU_ICON")
	private String menuIcon;
    /**
     * 排序
     */
	@TableField("SORT")
	private Integer sort;
    /**
     * 对应权限
     */
	@TableField("PERMISSION")
	private String permission;
    /**
     * 等级
     */
	@TableField("GRADE")
	private String grade;
    /**
     * 是否显示
     */
	@TableField("IS_SHOW")
	private String isShow;
    /**
     * 备注
     */
	@TableField("REMARK")
	private String remark;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	public String getMenuIcon() {
		return menuIcon;
	}

	public void setMenuIcon(String menuIcon) {
		this.menuIcon = menuIcon;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
